<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Shopping.Master" Inherits="QianJin.Views.FillUserInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm("FillInUserInfo", "Shopping"))
       { %>
<%--    <table width="720" border="0" cellspacing="0" cellpadding="0" class="title_bg_3">
        <tr>
            <td height="40" align="center">
                <%=GetString("fu_fill") %>
            </td>
        </tr>
    </table>--%>
    <table width="720" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="20">
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="720" border="0" cellspacing="0" cellpadding="0" class="table">
        <tr>
            <td width="111" height="40" align="right">
                <strong>
                    <%=GetString("fu_name") %></strong>&nbsp;&nbsp;
            </td>
            <td width="609" align="left">
                <input name="user.Name" type="text" class="table_input" size="30" value="<%= Model.User.Name%>" />
            </td>
        </tr>
        <tr>
            <td height="40" align="right">
                <strong>
                    <%=GetString("fu_email") %></strong>&nbsp;&nbsp;
            </td>
            <td align="left">
                <input name="user.Email" type="text" class="table_input" size="30" value="<%= Model.User.Email%>" />
            </td>
        </tr>
        <tr>
            <td height="40" align="right">
                <strong>
                    <%=GetString("fu_phone") %></strong>&nbsp;&nbsp;
            </td>
            <td align="left">
                <input name="user.Phone" type="text" class="table_input" size="30" value="<%= Model.User.Phone%>" />
            </td>
        </tr>
        <tr>
            <td height="40" align="right">
                <strong>
                    <%=GetString("fu_address") %></strong>&nbsp;&nbsp;
            </td>
            <td align="left">
                <input name="user.Address" type="text" class="table_input" size="81" value="<%= Model.User.Address%>" />
            </td>
        </tr>
        <tr>
            <td height="40" align="right">
                <strong>
                    <%=GetString("fu_company") %></strong>&nbsp;&nbsp;
            </td>
            <td align="left">
                <input name="user.Company" type="text" class="table_input" size="81" value="<%= Model.User.Company%>" />
            </td>
        </tr>
        <tr>
            <td height="40" align="right" valign="top">
                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="5">
                        </td>
                    </tr>
                </table>
                <strong>
                    <%=GetString("fu_comment") %></strong>&nbsp;&nbsp;
            </td>
            <td align="left">
                <table width="90%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td height="5">
                        </td>
                    </tr>
                </table>
                <textarea name="user.Comment" class="table_textarea" cols="63" rows="5"><%=this.Model.User.Comment %></textarea>
            </td>
        </tr>
        <tr style="padding: 8px">
        <td colspan="3">&nbsp;</td>
        </tr>
        <tr class="list_bg">
            <td width="270" height="28" align="center">
                <%=GetString("sl_prodname")%>
            </td>
            <td width="93" align="center">
                <%=GetString("sl_prodprice")%>
            </td>
            <td width="69" align="center">
                <%=GetString("sl_operation")%>
            </td>
        </tr>
        <%foreach (var item in Model.User.ShoppingCart.ShoppingItems)
          { %>
        <tr>
            <td height="28" align="center" bgcolor="#FFFFFF">
                <%=item.Name%>
            </td>
            <td align="center" bgcolor="#FFFFFF">
                <%= item.Price%>
            </td>
            <td align="center" bgcolor="#FFFFFF">
                <a href="<%=GetRemoveFromShoppingCartUrl(item.id) %>">
                    <img src="/content/del.jpg" alt="<%=GetString("sl_unadd")%>" width="14" height="14"
                        border="0" /></a>
            </td>
        </tr>
        <%} %>
    </table>
    <table width="720" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="30">
                &nbsp;
            </td>
        </tr>
    </table>
    <table width="720" border="0" cellspacing="0" cellpadding="0" class="title_bg_3">
        <tr>
            <td height="40" align="right">
                <input type="submit" name="button" class="button" value="<%=GetString("fu_order") %>" />
            </td>
        </tr>
    </table>
    <% } %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
